﻿using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LoginCtrl : Singleton<LoginCtrl>
{
    public void Enter()
    {
        EventCenter.Broadcast(EGameEvent.eGameEvent_LoginEnter);
    }

    public void Exit()
    {
        EventCenter.Broadcast(EGameEvent.eGameEvent_LoginExit);
    }

    //登陆
    public void Login(string account, string pass)
    {

    }

    //登陆错误反馈
    public void LoginError(int code)
    {

    }


    //登陆失败
    public void LoginFail()
    {

    }

    //开始游戏
    public void StartGame()
    {
        SceneManager.LoadScene("Play");
        WindowManager.Instance.ChangeScenseToPlay(EScenesType.EST_Login);
        GameStateManager.Instance.ChangeGameStateTo(GameStateType.GST_Play);
    }

}
